package com.wonders.frame.service;

import com.wonders.frame.entity.AuthSta;
import com.wonders.frame.repository.AuthStaRepository;
import com.wonders.frame.repository.core.CoreRepository;
import com.wonders.frame.service.Core.CoreCurdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author:admin
 * @Create:2019-05-14
 */
@Service
public class AuthStaService extends CoreCurdService<AuthSta> {
    @Autowired
    private AuthStaRepository authStaRepository;

    @Override
    protected CoreRepository<AuthSta> getRepository() {
        return authStaRepository;
    }

    // 飞防组织
    public AuthSta getAuthOrga() {
        return authStaRepository.findAuthOrga();
    }
    // 装备成员
    public AuthSta getEquipmentMember() {
        return authStaRepository.findEquipmentMember();
    }
    // 作业订单
    public AuthSta getJobOrder() {
        return authStaRepository.findJobOrder();
    }
    public List<AuthSta> getJobType(){
        return authStaRepository.findJobType();

    }
    public AuthSta getWorkArea() {
        return authStaRepository.findWorkArea();
    }
    public AuthSta getUfCount() {
        return authStaRepository.findUfCount();
    }
    public List<AuthSta> getUf() {
        return authStaRepository.findUf();
    }
    public List<AuthSta> getMember() {
        return authStaRepository.findMember();
    }
    public List<AuthSta> getJobTop(){
        return authStaRepository.findJobTop();

    }
    public List<AuthSta> getJobTop10(){
        return authStaRepository.findJobTop10();

    }

    public AuthSta getAreaUf() {
        return authStaRepository.findAreaUf();
    }
    public AuthSta getAreaJob() {
        return authStaRepository.findAreaJob();
    }
    public AuthSta getAreaCount() {
        return authStaRepository.findAreaCount();
    }
    public List<AuthSta> getAreaJobTop10(){
        return authStaRepository.findAreaJobTop10();

    }

    public List<AuthSta> getAreaJobType(){
        return authStaRepository.findAreaJobType();

    }

    public AuthSta getMileCount() {
        return authStaRepository.findMileCount();
    }

    public AuthSta getMileAvg() {
        return authStaRepository.findMileAvg();
    }

    public List<AuthSta> getJobCount(){
        return authStaRepository.findJobCount();

    }

    public List<AuthSta> getJobArea(){
        return authStaRepository.findJobArea();

    }
    public List<AuthSta> getAnalysisMonth(){
        return authStaRepository.findAnalysisMonth();

    }



}
